using org.mozilla.javascript;

namespace AjaxStack.Support
{
	internal class CSharpErrorReporter : ErrorReporter
	{
		public void warning(string str1, string str2, int i1, string str3, int i2)
		{

			System.Diagnostics.Debug.Print("{0} | {1} | {2} | {3} | {4}", str1, str2, i1, str3, i2);
		}

		public void error(string str1, string str2, int i1, string str3, int i2)
		{
			System.Diagnostics.Debug.Print("{0} | {1} | {2} | {3} | {4}", str1, str2, i1, str3, i2);
		}

		public EvaluatorException runtimeError(string str1, string str2, int i1, string str3, int i2)
		{
			var error = string.Format("{0} | {1} | {2} | {3} | {4}", str1, str2, i1, str3, i2);
			return new EvaluatorException(error);
		}
	}
}